package com.application.examples.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author :
 * @date : 2019/10/14 16:50
 */
@Data
public class HttpResponseBody implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer statusCode;
    private String body;

    public HttpResponseBody(Integer statusCode, Object object) {
        this.statusCode = statusCode;
    }

    public HttpResponseBody(Integer statusCode, String body) {
        this.statusCode = statusCode;
        this.body = body;
    }

    @Override
    public String toString() {
        return "HttpResponseBody{" +
                "statusCode=" + statusCode +
                ", body='" + body + '\'' +
                '}';
    }
}
